/**
 * 
 */
package demo.model.bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author virgil
 *
 */
@Entity
@Table(name="t_acces")
public class Acces {

	/**
	 * @uml.property  name="nom"
	 */
	private String nom;

	/**
	 * Getter of the property <tt>nom</tt>
	 * @return  Returns the nom.
	 * @uml.property  name="nom"
	 */
	public String getNom() {
		return nom;
	}

	/**
	 * Setter of the property <tt>nom</tt>
	 * @param nom  The nom to set.
	 * @uml.property  name="nom"
	 */
	public void setNom(String nom) {
		this.nom = nom;
	}

	/**
	 * @uml.property  name="id"
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;

	/**
	 * Getter of the property <tt>id</tt>
	 * @return  Returns the id.
	 * @uml.property  name="id"
	 */
	public int getId() {
		return id;
	}

	/**
	 * Setter of the property <tt>id</tt>
	 * @param id  The id to set.
	 * @uml.property  name="id"
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @uml.property  name="description"
	 */
	private String description;

	/**
	 * Getter of the property <tt>description</tt>
	 * @return  Returns the description.
	 * @uml.property  name="description"
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * Setter of the property <tt>description</tt>
	 * @param description  The description to set.
	 * @uml.property  name="description"
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @uml.property  name="rue"
	 */
	private String rue;

	/**
	 * Getter of the property <tt>rue</tt>
	 * @return  Returns the rue.
	 * @uml.property  name="rue"
	 */
	public String getRue() {
		return rue;
	}

	/**
	 * Setter of the property <tt>rue</tt>
	 * @param rue  The rue to set.
	 * @uml.property  name="rue"
	 */
	public void setRue(String rue) {
		this.rue = rue;
	}

	/**
	 * @uml.property  name="ville"
	 */
	private String ville;

	/**
	 * Getter of the property <tt>ville</tt>
	 * @return  Returns the ville.
	 * @uml.property  name="ville"
	 */
	public String getVille() {
		return ville;
	}

	/**
	 * Setter of the property <tt>ville</tt>
	 * @param ville  The ville to set.
	 * @uml.property  name="ville"
	 */
	public void setVille(String ville) {
		this.ville = ville;
	}

	/**
	 * @uml.property  name="codePostal"
	 */
	private double codePostal;

	/**
	 * Getter of the property <tt>codePostal</tt>
	 * @return  Returns the codePostal.
	 * @uml.property  name="codePostal"
	 */
	public double getCodePostal() {
		return codePostal;
	}

	/**
	 * Setter of the property <tt>codePostal</tt>
	 * @param codePostal  The codePostal to set.
	 * @uml.property  name="codePostal"
	 */
	public void setCodePostal(double codePostal) {
		this.codePostal = codePostal;
	}

		
		/**
		 */
	public Acces(String accesName, String accesDescription, String accesRue, String accesVille, double accesCP){
		this.codePostal=accesCP;
		this.description=accesDescription;
		this.nom=accesName;
		this.rue=accesRue;
		this.ville=accesVille;
		}

}
